package com.mice.view.start
{
	import com.iyimo.control.Button;
	import com.iyimo.manager.SpriteManager;
	import com.iyimo.scene.BaseScene;
	import com.mice.event.GameEvent;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	[Event(name="START_STORY", type="com.mice.event.GameEvent")]
	
	public class StartScene extends BaseScene{
		private var _startBtn:Button;
		
		public function StartScene(rawView:MovieClip){
			super(rawView);
		}
		
		override protected function createView():void{
			_startBtn = Button.createSimpleBtn(_view["start_btn"], null);
			_startBtn.addEventListener(MouseEvent.CLICK, onClick);
		}
		
		private function onClick(e:MouseEvent):void{
			var ev:GameEvent = new GameEvent(GameEvent.START_STORY);
			dispatchEvent(ev);
		}
	}
}